package cn.stylefeng.guns.modular.agv.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * TUSK小车任务表
 * </p>
 *
 * @author zhangzh
 * @since 2024-05-22
 */
@TableName("tusk_agv_task")
public class TuskAgvTask implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 任务配置的名称
     */
    @TableField("config_id")
    private String configId;

    /**
     * 开始位置编号
     */
    @TableField("src_position_code")
    private String srcPositionCode;

    /**
     * 目标位置编号
     */
    @TableField("tar_position_code")
    private String tarPositionCode;

    /**
     * 任务优先级
     */
    @TableField("priority")
    private Integer priority;

    /**
     * 任务编码
     */
    @TableField("task_id")
    private String taskId;

    /**
     * 新建任务接口结果
     */
    @TableField("crate_res")
    private String crateRes;

    /**
     * 状态 01新建 10取货 20放货 90取消
     */
    @TableField("stat")
    private String stat;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getConfigId() {
        return configId;
    }

    public void setConfigId(String configId) {
        this.configId = configId;
    }

    public String getSrcPositionCode() {
        return srcPositionCode;
    }

    public void setSrcPositionCode(String srcPositionCode) {
        this.srcPositionCode = srcPositionCode;
    }

    public String getTarPositionCode() {
        return tarPositionCode;
    }

    public void setTarPositionCode(String tarPositionCode) {
        this.tarPositionCode = tarPositionCode;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getCrateRes() {
        return crateRes;
    }

    public void setCrateRes(String crateRes) {
        this.crateRes = crateRes;
    }

    public String getStat() {
        return stat;
    }

    public void setStat(String stat) {
        this.stat = stat;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Long updateUser) {
        this.updateUser = updateUser;
    }

    @Override
    public String toString() {
        return "TuskAgvTask{" +
        "id=" + id +
        ", configId=" + configId +
        ", srcPositionCode=" + srcPositionCode +
        ", tarPositionCode=" + tarPositionCode +
        ", priority=" + priority +
        ", taskId=" + taskId +
        ", crateRes=" + crateRes +
        ", stat=" + stat +
        ", remark=" + remark +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}
